package com.du.dumall.common.exception;

public enum ExceptionEnum {
    VALUE_EXCEPTION(10001,"数据验证错误"),
    NUKNOW_EXCEPTION(10000,"系统错误"),
    ;

    private int code;
    private String message;

    ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
